//
//  ByRedEmptyView.m
//  caipiao_ios
//
//  Created by mc on 2018/10/25.
//  Copyright © 2018年 ZhangZhanbin. All rights reserved.
//

#import "ByRedEmptyView.h"

@implementation ByRedEmptyView

- (id)init{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        
        UIImageView *stateView = [[UIImageView alloc] init];
        [self addSubview:stateView];
        stateView.image = [UIImage imageNamed:@"附近-挑战赛"];
        [stateView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self).offset(0);
            make.bottom.equalTo(self.mas_centerY).offset(-5);
            make.size.mas_equalTo(CGSizeMake(17, 17));
        }];
        
        
        UILabel *titleLabel = [[UILabel alloc] init];
        [self addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(stateView.mas_bottom).offset(5);
            make.left.equalTo(self).offset(0);
            make.right.equalTo(self).offset(0);
            make.height.mas_equalTo(@15);
        }];
        
        titleLabel.font = FONT(14);
        titleLabel.textColor = [UIColor lightGrayColor];
        titleLabel.textAlignment = NSTextAlignmentCenter;
        titleLabel.text = @"红人榜单等着你来Pk";
        
        
    }
    return self;
}

@end
